﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Mail;
using System.Net.Mail;

public partial class Account_QuenMatKhau : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void PasswordRecovery1_SendingMail(object sender, MailMessageEventArgs e)
    {
        e.Cancel = true;
        //this.PasswordRecovery1.MailDefinition.BodyFileName = "~/PasswordRecoveryMail.txt";
        SmtpClient smtp = new SmtpClient();
        smtp.EnableSsl = true;
        smtp.Send(e.Message);
    }
}